package com.hongxun.design.listeners;

import android.view.View;

import com.hongxun.design.MyApp;
import com.hongxun.design.utils.camerautil.CameraUtil;

/**
 * Created by zerdoor_pc on 2016/5/11.
 */
public class OpenCameraClick implements View.OnClickListener {
    private int TYPE;

    public OpenCameraClick(int type) {
        this.TYPE = type;
    }

    @Override
    public void onClick(View view) {
        if (MyApp.activity == null) return;
        CameraUtil.openCamera(TYPE);
    }
}

